from flask  import Flask,request,render_template

app = Flask(__name__)

@app.route('/')
def hello_world():
    return '欢迎来到首页'

@app.route('/lists/',methods=['GET','POST'])
def my_list():
    return 'lists'

@app.route('/login/',methods=['GET','POST'])
def login():
    if request.method == 'GET':
        return render_template("login.html")
    else:
        return "POST request failed"

if __name__ == "__main__":
    app.run(debug=True,host='0.0.0.0')